#ifndef D67D662C_AC28_4C38_B51A_BA9F6D1817CF
#define D67D662C_AC28_4C38_B51A_BA9F6D1817CF

enum CommCmd
{
    COMM_UART = 1,
    COMM_ADC,
    COMM_IIC_MASTER,
    COMM_IIC_SLAVE,
    COMM_SPI_MASTER,
    COMM_SPI_SLAVE,
};
enum CommSubCmdUart
{
    COMM_SUB_UART_SET_PARAM = 1,
    COMM_SUB_UART_SEND,
    COMM_SUB_UART_REC
};

enum CommSubCmdADC
{
    COMM_SUB_ADC_UPDATE = 1,
};

#define COM_OK   0
#define COM_FAIL 1

void usb_send(unsigned char *arr, unsigned short len);
void usb_rec(unsigned char *arr, unsigned short len);
void usb_reply_ok(unsigned char cmd, unsigned char subCmd, unsigned char ok);
unsigned char chksum(unsigned char *b, int len);
#endif /* D67D662C_AC28_4C38_B51A_BA9F6D1817CF */
